package com.example.another.bottomnavigationdemo1.fragment;

import android.os.Bundle;
import android.support.annotation.NonNull;
import android.support.annotation.Nullable;
import android.support.v4.app.Fragment;
import android.view.LayoutInflater;
import android.view.View;
import android.view.ViewGroup;
import android.widget.TextView;

import com.example.another.bottomnavigationdemo1.R;

public class FiveFragment extends Fragment {
    private View mView;

    @Nullable
    @Override
    public View onCreateView(@NonNull LayoutInflater inflater, @Nullable ViewGroup container, @Nullable Bundle savedInstanceState) {

        mView = inflater.inflate(R.layout.fragment, container, false);
        initViews();
        return mView;
    }

    private void initViews() {
        TextView textView = (TextView) mView.findViewById(R.id.text_content);
        textView.setText("fragment5");
    }
}
